package com.classtest.classtestdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.classtest.classtestdemo.bean.DbGoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DbGoodsMapper extends BaseMapper<DbGoods> {
    public List<DbGoods> fuzzySearch(@Param("down") int down,@Param("up") int up,@Param("gsName") String gsName);
    public List<DbGoods> selectAll(@Param("down") int down,@Param("up") int up);
    public int selectCount();
    public int fuzzyCount(DbGoods dbGoods);
    public void UpdateCountByGsId(@Param("gsId") String gsId,@Param("count") int count);
    public List<DbGoods> selectByGsId(@Param("gsId") String gsId);
}
